Scenario #1039: Remove Operations Contact From Partner

Properties

Required

Given

name value
operationsContactPerson Dennis Krause

Operations-Contact: Dennis Krause

HTTP GET "/api/hs/office/relations?relationType=OPERATIONS&name=Dennis+Krause" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "a34341bf-7c9c-45b2-8d37-51091d1c0265", // Operations-Contact: Dennis Krause for Test AG
  "anchor" : {
    "uuid" : "00ddd2fc-8742-46e5-924c-77749d4c8ccc", // Person: Test AG
    "personType" : "LEGAL_PERSON",
    "tradeName" : "Test AG",
    "salutation" : null,
    "title" : null,
    "givenName" : null,
    "familyName" : null
  },
  "holder" : {
    "uuid" : "d1a395c0-c558-438c-ab60-eb5a9ccb204d", // Person: Dennis Krause
    "personType" : "NATURAL_PERSON",
    "tradeName" : null,
    "salutation" : null,
    "title" : null,
    "givenName" : "Dennis",
    "familyName" : "Krause"
  },
  "type" : "OPERATIONS",
  "mark" : null,
  "contact" : {
    "uuid" : "64c932bc-2e34-49ce-8a29-e9ad43fe3f36", // Contact: Dennis Krause
    "caption" : "Dennis Krause",
    "postalAddress" : { },
    "emailAddresses" : {
      "main" : "dennis.krause@example.org"
    },
    "phoneNumbers" : {
      "main" : "+49 9932 587741"
    }
  }
} ]

In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.

Delete the Contact

HTTP DELETE "/api/hs/office/relations/a34341bf-7c9c-45b2-8d37-51091d1c0265" // Operations-Contact: Dennis Krause for Test AG \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 204 NO_CONTENT 

Verify the New OPERATIONS Relation

HTTP GET "/api/hs/office/relations/a34341bf-7c9c-45b2-8d37-51091d1c0265" // Operations-Contact: Dennis Krause for Test AG \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 404 NOT_FOUND 

generated on 2026-08-10 01:37:51 for branch